/**
 * Created by abdulazizalonizi on 7/31/17.
 */
public class Task3 {
    public static void main (String[] args)
    {

        char [] Solution = {'T','T','F','F','T'};
        char [][] grades = { {'T','F','T','T','T'} , {'T','T','T','T','T'} ,{'T','T','F','F','T'} , {'F','T','F','F','F'} ,{'F','F','F','F','F'} , {'T','T','F','T','F'} } ;
        int [] Students = new int [grades.length];
        //System.out.println(Solution.length);
        for ( int r = 0 ; r <grades.length ;r++)
        {
            for (int c = 0 ; c <grades[r].length ;c++  )
            {
           if(grades[r][c] == Solution[c])
           {
           Students[r]=Students[r] + 5 ;
           }
            }

            System.out.println("Student"+r +"       " + Students[r]);
        }





    }




    }

